<template>
	<el-dialog  v-model="show" title="设备续费" width="740" align-center>
    <div class="desc">
      提示：所需费用，将直接从您的费用中心的余额中扣除，如需发票请去【发票申请】菜单中申请
    </div>
    <div class="item">
      <div class="label">充值金额：</div>
      <div class="value">
        <el-input style="width:100px;margin-right: 10px;"></el-input>
        <span class="unit">元</span>
      </div>
    </div>
    <div class="item">
      <div class="label">合计金额：</div>
      <div class="money">¥  00.00元</div>
      <div class="recharge">
        （当前余额为0.00元, 余额不足， 
        <span class="text">立即充值</span>
        ）
      </div>
    </div>
    <div class="tip">
      PS:点击【立即充值】跳转账号概览
    </div>
    <template #footer>
        <div class="dialog-footer">
            <el-button type="primary" @click="submit()" color="#0071bb">确定</el-button>
            <el-button @click="close()">取消</el-button>
        </div>
    </template>
    </el-dialog>
</template>

<script lang="ts" setup>
import { ref } from "vue";
import type { FormInstance, FormRules } from 'element-plus'
import { ElMessage } from 'element-plus'
import { Plus } from '@element-plus/icons-vue'
import { defineProps,defineEmits,toRefs } from 'vue';
const emit = defineEmits(['close','submit']);
const props = defineProps<{ formData:any }>();
// 取消
const close = () => {
    emit('close')
}
// 确定
const submit = () => {
  emit('submit')
}
const show = ref<boolean>(true)
</script>

<style lang="scss" scoped>
.df{
    display: flex;
    align-items: center;
}
.fd{
  font-weight:bold;
}
.desc{
  background:#00ffff;
  padding:20px;
}
.item{
  display: flex;
  margin-top: 10px;
  padding: 0 20px;
  box-sizing: border-box;
  align-items: center;
  .money{
    font-weight: bold;
    margin-right: 40px;
  }
  .text{
    color: blue;
  }
}
.tip{
  width: 100%;
  text-align: right;
  color: #4D4D4D;
  font-size: 12px;
  margin-top: 10px;
  padding: 0 40px;
  box-sizing: border-box;
}

.dialog-footer{
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 0 20px;
    font-size: 14px;
}
</style>